﻿package com.janisRadins.asDraw.vo {
	import com.janisRadins.asDraw.Curve;
	import flash.geom.Point;
	/**
	 * @author Jānis Radiņš
	 */
	public class CurvePosition {
		protected var _coordinates:Point = null;
		protected var _startLength:Number = NaN;
		protected var _curve:Curve = null;
		protected var _index:uint = 0;
		public function CurvePosition(coordinates:Point, startLength:Number, curve:Curve, index:uint) {
			_coordinates = coordinates;
			_startLength = startLength;
			_curve = curve;
			_index = index;
		}
		
		public function get coordinates():Point { 
			return _coordinates;
		}
		public function get startLength():Number {
			return _startLength;
		}
		public function get curve():Curve {
			return _curve;
		}
		public function get index():uint {
			return _index;
		}
		
		public function toString():String {
			return "CurvePosition [coordinates:" + _coordinates + ", startLength:" + _startLength + ", curve:" + _curve + ", index: " + _index + "]";
		}
	}
}